package cn.com.jinhao.provider.business.service.impl;

import cn.com.jinhao.provider.business.entity.TRKSheetRecord;
import cn.com.jinhao.provider.business.mapper.TRKSheetRecordMapper;
import cn.com.jinhao.provider.business.service.TRKSheetRecordService;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;

import javax.annotation.Resource;

/**
 * hotline-spring-cloud
 * <p>Description: </p>
 *
 * @author ShaneMew
 * @version 1.0
 * @date 2020/6/11
 * @since 2020/6/11
 */
@Service
public class TRKSheetRecordServiceImpl implements TRKSheetRecordService {
    @Resource
    TRKSheetRecordMapper trkSheetRecordMapper;

    @Override
    public TRKSheetRecord selectByCallId(String callId) {
        Example example = new Example(TRKSheetRecord.class);
        example.createCriteria().andEqualTo("callId", callId);

        return trkSheetRecordMapper.selectOneByExample(example);
    }
}
